class TpsshopLoginApi:
    @classmethod
    # 1.图片验证码接口
    def get_image_code(cls,session):
        session.get("http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=verify")
     # 2.登录接口
    @classmethod
    def login(cls,session,body):
        login_url=("http://hmshop-test.itheima.net/index.php?m=Home&c=User&a=do_login")
        header = {"Content-Type": "application/x-www-form-urlencoded"}
        resp = session.post(url=login_url, headers=header, data=body)
        return resp